﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.ServiceModel;
using System.Text;
using F_SER.Module;
using System.Net;
using System.ServiceModel.Web;
using F_SER.BLL;

namespace F_SER.Service
{
    // 注意: 使用“重构”菜单上的“重命名”命令，可以同时更改代码、svc 和配置文件中的类名“ServiceRest”。
    /// <summary>
    /// 联通话费代缴接口Rest
    /// </summary>
    public class ServiceRest : IServiceRest
    {
        TelPortBll telPortBll = new TelPortBll();
        /// <summary>
        /// 绑定验证接口
        /// </summary>
        /// <param name="admin">授权账号</param>
        /// <param name="pwd">授权密码</param>
        /// <param name="tel">电话</param>
        /// <param name="cardId">一卡通号</param>
        /// <param name="cid">身份证</param>
        /// <returns></returns>
        public string checkBind(string admin, string pwd, string tel, string cardId, string cid)
        {
            return telPortBll.checkBind(admin, pwd, tel, cardId, cid);
        }
       /// <summary>
       /// 代扣接口
       /// </summary>
       /// <param name="admin"></param>
       /// <param name="pwd"></param>
       /// <param name="tel"></param>
       /// <param name="cardId"></param>
       /// <param name="monery">代扣金额</param>
       /// <param name="cid"></param>
       /// <returns></returns>
        public TelPort Renew(string admin, string pwd, string tel, string cardId, double monery, string cid)
        {
           
            return telPortBll.Renew(admin, pwd, tel, cardId, monery, cid);
        }


    }
}
